import React from "react";
import {CopyTwoTone} from "@ant-design/icons";


type Props = {
  text: string
}

const CopyText: React.FC<Props> = (props: { text: string }) => {

  const {text} = props

  return <CopyTwoTone onClick={() => {
    navigator.clipboard.writeText(text || "")
  }} style={{marginLeft: 10}}/>
}


export default CopyText;
